package com.cruise.h5.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
/**
 * <p>
 *
 * </p>
 *
 * @author cruise
 * @since 2021-04-14
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("b_category")
public class Category  implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 唯一ID
     */
    @TableId(value = "id", type = IdType.UUID)
    private String id;
    /**
     * 父级ID
     */
    @TableField("pid")
    private String pid;
    /**
     * 文本内容
     */
    @TableField("text")
    private String text;
    /**
     * 排序
     */
    @TableField("sort")
    private Integer sort;

    /**
     *
     */
    @TableField("`desc`")
    private String desc;
}

